<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:include="navigation::nav">
</div>
<h2>班级管理</h2>
<hr>
<div style="display: flex">
    <div>
        <table border="2px">
            <tr>
                <th>课程编号</th>
                <th>课程名称</th>
                <th>操作</th>
                <th>操作</th>
            </tr>
            <tr th:each="x:${list}">
                <td th:text="${x.getCon()}"></td>
                <td th:text="${x.getCname()}"></td>
                <td> <a th:href="'/courseadm/ups/'+${x.getCon()}">更改课程名称</a></td>
                <td> <a th:href="'/courseadm/dels/'+${x.getCon()}">删除该课程</a></td>
            </tr>
        </table>
        <div style="display: flex">
            <a th:href="'/courseadm/curline?curline='+${curline}">上一页</a><br>
            <p th:text="${curline}+'/'+${lines}"></p><br>
            <a th:href="'/courseadm/lines?curline='+${curline}">下一页</a>
        </div>
        <h2 th:if="${actions!=null}" th:text="${actions}"></h2>
    </div>
    <div style="width: 40%;margin-left: 30%">
        <button><a href="/courseadm/adds">添加课程</a></button>
        <hr>
        <h2 th:text="${action}+'课程'"></h2>
        <form method="post" th:action="'/courseadm/'+${go2}">
            课程编号：<input type="text" name="con" th:value="${course.getCon()}"><br>
            课程名称：<input type="text" name="cname" th:value="${course.getCname()}"><br>
            <input type="submit" th:value="确认">
        </form>
    </div>
</div>
</body>
</html>